﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QueueDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            Queue queue = new Queue();
            queue.Enqueue("小明");
            queue.Enqueue("小林");
            queue.Enqueue("小刚");
            Console.WriteLine("报数开始：");
            while (queue.Count != 0)
            {
                Console.WriteLine(queue.Dequeue() + "已报数！");
            }
            Console.WriteLine("报数结束！全员到齐");

        }
        
            
}
    }

